@file:Suppress("unused")

package com.example.demo.model.blog

import xyz.erupt.annotation.*
import xyz.erupt.annotation.sub_field.*
import xyz.erupt.annotation.sub_field.sub_edit.*
import xyz.erupt.upms.model.base.*
import javax.persistence.*

@Erupt(name = "博客标签", desc = "sort")
@Table(name = "blog_tag")
@Entity
class BlogTag : HyperModel() {

    @EruptField(
        views = [View(title = "标签名称")],
        edit = Edit(
            title = "标签名称",
            notNull = true,
            search = Search(vague = true),
            inputType = InputType(fullSpan = true),
        ),
    )
    var name: String = ""

    @EruptField(
        views = [View(title = "排序")],
        edit = Edit(title = "排序", notNull = true),
    )
    var sort: Int = 0

}